package com.fingard.dsp.web.page.d;

import java.util.ArrayList;

import com.fingard.FGBiz;
import com.fingard.dsp.web.page.PageBase;

public class GetLimitLogCat extends PageBase{
	@Override
	public void pageLoad() throws Exception{
		
		StringBuilder sbJson = new StringBuilder();
		sbJson.append("{");
		sbJson.append("\"respCode\":"+"\"0\",");
    	sbJson.append("\"respInfo\":"+"\"\",");
    	sbJson.append("\"dataList\":[");
    	ArrayList<String> keyList = FGBiz.limitMsg.getLimitKey();
    	for(int i=0;i<keyList.size();i++){
    		if(i>0){
				sbJson.append(",");
			}
    		sbJson.append("{");
    		sbJson.append("\"key\":\""+keyList.get(i)+"\"");
    		sbJson.append("}");
    	}
    	sbJson.append("]}");
    	
    	httpContext.response.respMsg = sbJson.toString();
	}
}
